package apk.yoursms.views;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

public class TextView extends android.widget.TextView {

    public TextView(Context context) {
	super(context);
	init();
    }

    public TextView(Context context, AttributeSet attrs) {
	super(context, attrs);
	init();
    }

    public TextView(Context context, AttributeSet attrs, int defStyle) {
	super(context, attrs, defStyle);
	init();
    }

    private void init() {
	if (!isInEditMode()) {
	    Typeface typeFont = Typeface.createFromAsset(getContext()
		    .getAssets(), "fonts/Comic.ttf");
	    setTypeface(typeFont);
	}

    }

}
